import ajax from './ajax'

//http://qxstartpoint.com/api/index/getData

//1.定义基础路径
export const BASE_URL = '/api/';

export const getHomeData = () =>ajax(BASE_URL + 'api/index/getData');
export const getConfig = async () => await ajax(BASE_URL + 'api/index/getConfig');
export const getCountry = () =>ajax(BASE_URL + 'api/index/getCountry');
export const getUniversity = (params) =>ajax(BASE_URL + 'api/index/getUniversity/',params);
export const search = (params) =>ajax(BASE_URL + 'api/index/search/',params);
export const getArticleList  = (params) =>ajax(BASE_URL + 'api/index/getArticleList/',params);
export const getArticleInfo  = (params) =>ajax(BASE_URL + 'api/index/getArticleInfo/',params);
// export const getCategoriesDetail = (params)=>ajax(BASE_URL + '/api/homeApi/categoriesdetail/'+params);
